//  加载框
//  TopLoadingView.h
//  MotoControl
//
//  Created by xiongfeng on 14-11-10.
//  Copyright (c) 2014年 xiongfeng. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol CancelLoadingDelegate <NSObject>
- (void)cancelLoading;
@end

@interface TopLoadingView : UIView

+ (void)showInView:(UIView*)view title:(NSString*)title delegate:(id<CancelLoadingDelegate>)delegate_ ;
+ (void)showInView:(UIView*)view title:(NSString*)title delegate:(id<CancelLoadingDelegate>)delegate_ obscure:(BOOL)obs;
+ (void)showInView:(UIView*)view title:(NSString*)title delegate:(id<CancelLoadingDelegate>)delegate_ obscure:(BOOL)obs useClose:(BOOL)close;
+ (void)hide;

@end
